#!/user/bin/env python
# -*- coding: utf-8 -*-
import random

class Rand(object):
    def __init__(self,x):
        self.x = x
	self.a = 2
        self.b = 99

    def randx(self):
	a,b,y = self.a,self.b,self.x
        x = random.randint(a,b)
        print 'a =%s ,b=%s,x=%s' % (a,b,x)
        if x == y:
            return '定义数为 %s' % x
        elif a<x<y:
             self.a = x
        elif y<x<b:
             self.b = x
        return self.randx()
 
    def rsss(self):
        print 'asda'


if __name__=="__main__":
    s = Rand(54)
    print s.randx()
else :
    print 'youxi'
